import Layout from '@/pages/public/layout' // 公共部分

const bank = [{
  path: '/exam/question/bank',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/exam/question/bank/index.vue'),
    meta: {
      title: '题库管理',
      permission: 'exam.question.bank.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/exam/question/bank/create.vue'),
    meta: {
      title: '新建题库',
      permission: 'exam.question.bank.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/exam/question/bank/edit.vue'),
    meta: {
      title: '编辑题库',
      permission: 'exam.question.bank.edit'
    }
  }, {
    path: ':id/topics',
    component: () => import('@/pages/exam/question/bank/topics/index.vue'),
    meta: {
      title: '题库试题管理',
      permission: 'exam.question.bank.topic'
    }
  }, {
    path: ':id/import',
    component: () => import('@/pages/exam/question/bank/import/index.vue'),
    meta: {
      title: '试题导入',
      permission: 'exam.question.topic.create'
    }
  }, {
    path: 'category',
    component: () => import('@/pages/exam/question/bank/category/index.vue'),
    meta: {
      title: '题库分类',
      permission: 'exam.question.bank.category.list'
    }
  }]
}]

export default bank
